<div id="sample">
    <div id="myDiagramDiv" style="border: solid 1px black; width:100%; height:500px"></div>
</div>

<script>
    var Statsdata = {
        gModel: {$gModel}
    };
</script>